package com.dys.multiple;

import java.lang.annotation.*;

/**
 * @className: com.dys.multiple.DataSource
 * @description: 自定义多数据源切换注解
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/11/26 23:19
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface DataSource {

    /**
     * 切换数据源名称
     */
    DataSourceType value() default DataSourceType.REMOTE;
}
